package com.quan.admin.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.quan.commons.core.biz.support.MyBaseServiceImpl;
import com.quan.commons.core.utils.PageUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.metadata.IPage;

import com.quan.admin.mapper.SysMessageToUserMapper;
import com.quan.admin.entity.SysMessageToUser;
import com.quan.admin.service.SysMessageToUserService;


@Service
public class SysMessageToUserServiceImpl extends MyBaseServiceImpl<SysMessageToUserMapper, SysMessageToUser> implements SysMessageToUserService {

    @Autowired
	private SysMessageToUserMapper mapper;

	@Override
    public IPage<SysMessageToUser> selectMyPage(PageUtils pageUtils, SysMessageToUser entity) {
        Page<SysMessageToUser> page = new Page<SysMessageToUser>(pageUtils.getPage(), pageUtils.getLimit());

        // 排序
        super.handleSort(page, pageUtils);

        return this.mapper.selectMyPage(page, entity);
    }

}